{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/member_addr/index',['member_id'=>$data.member_id])}">会员地址管理</a></li>
            <li class="layui-this">编辑会员地址</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/member_addr/edit')}" method="post">
                    <input type="hidden" name="id" value="{$data.id}">
                    <input type="hidden" name="member_id" value="{$data.member_id}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">国家 ：</label>
                        <div class="layui-input-block">
                            <input type="text" name="country" value='{$data.country}' placeholder="请输入国家" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">省份 ：</label>
                        <div class="layui-input-block">
                            <input type="text" name="province" value='{$data.province}' placeholder="请输入省份" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">城市 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="city" value='{$data.city}' placeholder="请输入城市" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邮编 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="postalcode" value='{$data.postalcode}' placeholder="请输入邮编" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">第一个地址 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="addr1" value='{$data.addr1}' placeholder="请输入第一个地址" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">第二个地址 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="addr2" value='{$data.addr2}' placeholder="请输入第二个地址" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">第三个地址 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="addr3" value='{$data.addr3}' placeholder="请输入第三个地址" class="layui-input">
                        </div>
                    </div>
                    
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否默认 :</label>
                        <div class="layui-input-block">
                            <input type="radio" name="is_default" value="1" title="是" {if condition="$data.is_default==1"} checked="checked"{/if}>
                            <input type="radio" name="is_default" value="0" title="否" {if condition="$data.is_default==0"} checked="checked"{/if}>
                        </div>
                    </div>
                    
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}